package com.xy.model;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class Novel {
		private String bookName;
		private List<String> bookType;
		private String bookAuthor;
		private String bookState;
		private Integer bookWords;
		private String bookIntro;
		private List<Catalog> bookCatalog;
		@DateTimeFormat(pattern = "yyyy-MM-dd")//页面写入数据库时格式化
		private Date updateTime;
		private Integer monthlyTickets;
		private Integer totalHits;
		private Integer monthlyHits;
		private Integer weeklyHits;
		private Integer dailyHits;
		private Integer totalCollections;
		private Integer monthlyCollections;
		private Integer weeklyCollections;
		private Integer dailyCollections;
		private Integer downloads;
		private List<Comment> comments;
		private String novelStatus;
}